//
//  FCAlertAction.h
//  FCCommonUse_Example
//
//  Created by WJC on 2018/12/18.
//  Copyright © 2018 64912907. All rights reserved.
//

#import <UIKit/UIKit.h>
@class FCAlertAction;
/**
 按钮样式

 - FCAlertActionDefault: 默认,蓝色
 - FCAlertActionDelete: 红色
 - FCAlertActionCancel: 取消,灰色
 */
typedef NS_ENUM(NSInteger, FCAlertActionType) {
    FCAlertActionDefault,
    FCAlertActionDelete,
    FCAlertActionCancel,
    
    HTHAlertActionDefault, 
    HXAlertActionDefault,
    HXAlertActionCancel,
    HXAlertActionEdit,
    HXAlertActionWhite,
};

typedef void(^alertActionBlock)(FCAlertAction * _Nullable action);
@interface FCAlertAction : UIButton
+ (instancetype)actionWithTitle:(nullable NSString *)title style:(FCAlertActionType)style handler:(void (^_Nullable)(FCAlertAction * _Nonnull  action))handler;

@property (nullable, nonatomic) NSString *title;
@property (nullable, nonatomic) UIImageView *HeadImage;
@property (nonatomic, assign) FCAlertActionType style;
/** 选择行支的回调 */
@property (nonatomic,strong) alertActionBlock _Nullable alertBlock;

/** 点击按钮后不消失弹窗 */
@property (nonatomic,assign) BOOL isNoDismiss;
/** 先响应事件后消失 */
@property (nonatomic,assign) BOOL actionEventAfterDismiss;

@end
